<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A cache dictionary essentially behaves like a dictionary but will automatically create a new value whenever a key is not found.  
 <a href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.png" usemap="#SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;_map" alt=""/>
  <map id="SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;_map" name="SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;_map">
<area href="class_system_sharp_1_1_collections_1_1_observable_cache_3_01_t_key_00_01_t_value_01_4.html" title="An observable cache behaves like a cache dictionary, but additionally implements the IObservable&lt;T&gt; i..." alt="SystemSharp.Collections.ObservableCache&lt; TKey, TValue &gt;" shape="rect" coords="0,112,361,136"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4c1e27249e6267f7f6016e81689e8013"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html#a4c1e27249e6267f7f6016e81689e8013">CacheDictionary</a> (Func&lt; TKey, TValue &gt; creator)</td></tr>
<tr class="memdesc:a4c1e27249e6267f7f6016e81689e8013"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new instance  <a href="#a4c1e27249e6267f7f6016e81689e8013">More...</a><br/></td></tr>
<tr class="separator:a4c1e27249e6267f7f6016e81689e8013"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fdbf2ec2519b354ab661b8633c2f530"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html#a3fdbf2ec2519b354ab661b8633c2f530">CacheDictionary</a> (IEqualityComparer&lt; TKey &gt; comparer, Func&lt; TKey, TValue &gt; creator)</td></tr>
<tr class="memdesc:a3fdbf2ec2519b354ab661b8633c2f530"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new instance  <a href="#a3fdbf2ec2519b354ab661b8633c2f530">More...</a><br/></td></tr>
<tr class="separator:a3fdbf2ec2519b354ab661b8633c2f530"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa367cccfb57a344061864c12401eff94"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html#aa367cccfb57a344061864c12401eff94">Cache</a> (TKey key)</td></tr>
<tr class="memdesc:aa367cccfb57a344061864c12401eff94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ensures that the key is present in the dictionary, possibly by creating a new value for it.  <a href="#aa367cccfb57a344061864c12401eff94">More...</a><br/></td></tr>
<tr class="separator:aa367cccfb57a344061864c12401eff94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89a20a0a54eb1eb595e1ae8b6a03ad14"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html#a89a20a0a54eb1eb595e1ae8b6a03ad14">IsCached</a> (TKey key)</td></tr>
<tr class="memdesc:a89a20a0a54eb1eb595e1ae8b6a03ad14"><td class="mdescLeft">&#160;</td><td class="mdescRight">Queries whether given key is already present in the dictionary  <a href="#a89a20a0a54eb1eb595e1ae8b6a03ad14">More...</a><br/></td></tr>
<tr class="separator:a89a20a0a54eb1eb595e1ae8b6a03ad14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8844f0e43c3b8d734acdc9a00e23ebc4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html#a8844f0e43c3b8d734acdc9a00e23ebc4">Clear</a> ()</td></tr>
<tr class="memdesc:a8844f0e43c3b8d734acdc9a00e23ebc4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the dictionary  <a href="#a8844f0e43c3b8d734acdc9a00e23ebc4">More...</a><br/></td></tr>
<tr class="separator:a8844f0e43c3b8d734acdc9a00e23ebc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a847c8e1ed13201bda941997c115a3c1d"><td class="memItemLeft" align="right" valign="top">IEnumerator&lt; KeyValuePair<br class="typebreak"/>
&lt; TKey, TValue &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html#a847c8e1ed13201bda941997c115a3c1d">GetEnumerator</a> ()</td></tr>
<tr class="separator:a847c8e1ed13201bda941997c115a3c1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a719f2428a591b8ac0d6cdd9768f9fd03"><td class="memItemLeft" align="right" valign="top">Action&lt; TKey, TValue &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html#a719f2428a591b8ac0d6cdd9768f9fd03">OnItemAdded</a></td></tr>
<tr class="memdesc:a719f2428a591b8ac0d6cdd9768f9fd03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggered whenever a new key/value-pair was created  <a href="#a719f2428a591b8ac0d6cdd9768f9fd03">More...</a><br/></td></tr>
<tr class="separator:a719f2428a591b8ac0d6cdd9768f9fd03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8037c701bb87a7cd43a9dcc10ec3322a"><td class="memItemLeft" align="right" valign="top">TValue&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html#a8037c701bb87a7cd43a9dcc10ec3322a">this[TKey key]</a><code> [get]</code></td></tr>
<tr class="memdesc:a8037c701bb87a7cd43a9dcc10ec3322a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Looks for a given key and either returns its cached value or creates and caches a new value for it.  <a href="#a8037c701bb87a7cd43a9dcc10ec3322a">More...</a><br/></td></tr>
<tr class="separator:a8037c701bb87a7cd43a9dcc10ec3322a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8c314469a423d60e61028ecdca0f654"><td class="memItemLeft" align="right" valign="top">ICollection&lt; TKey &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html#af8c314469a423d60e61028ecdca0f654">Keys</a><code> [get]</code></td></tr>
<tr class="memdesc:af8c314469a423d60e61028ecdca0f654"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all cached keys  <a href="#af8c314469a423d60e61028ecdca0f654">More...</a><br/></td></tr>
<tr class="separator:af8c314469a423d60e61028ecdca0f654"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27c1a4b34b75b83c17ad5df20aab5a97"><td class="memItemLeft" align="right" valign="top">ICollection&lt; TValue &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html#a27c1a4b34b75b83c17ad5df20aab5a97">Values</a><code> [get]</code></td></tr>
<tr class="memdesc:a27c1a4b34b75b83c17ad5df20aab5a97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all cached values  <a href="#a27c1a4b34b75b83c17ad5df20aab5a97">More...</a><br/></td></tr>
<tr class="separator:a27c1a4b34b75b83c17ad5df20aab5a97"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A cache dictionary essentially behaves like a dictionary but will automatically create a new value whenever a key is not found. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">TKey</td><td>type of key</td></tr>
    <tr><td class="paramname">TValue</td><td>type of value</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_cache_dictionary_8cs_source.html#l00032">32</a> of file <a class="el" href="_cache_dictionary_8cs_source.html">CacheDictionary.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4c1e27249e6267f7f6016e81689e8013"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;.CacheDictionary </td>
          <td>(</td>
          <td class="paramtype">Func&lt; TKey, TValue &gt;&#160;</td>
          <td class="paramname"><em>creator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a new instance </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">creator</td><td>functor which creates a new value for non-existent key</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_cache_dictionary_8cs_source.html#l00053">53</a> of file <a class="el" href="_cache_dictionary_8cs_source.html">CacheDictionary.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a3fdbf2ec2519b354ab661b8633c2f530"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;.CacheDictionary </td>
          <td>(</td>
          <td class="paramtype">IEqualityComparer&lt; TKey &gt;&#160;</td>
          <td class="paramname"><em>comparer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Func&lt; TKey, TValue &gt;&#160;</td>
          <td class="paramname"><em>creator</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a new instance </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">comparer</td><td>equality comparer for keys</td></tr>
    <tr><td class="paramname">creator</td><td>functor which creates a new value for non-existent key</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_cache_dictionary_8cs_source.html#l00064">64</a> of file <a class="el" href="_cache_dictionary_8cs_source.html">CacheDictionary.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aa367cccfb57a344061864c12401eff94"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;.Cache </td>
          <td>(</td>
          <td class="paramtype">TKey&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Ensures that the key is present in the dictionary, possibly by creating a new value for it. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>key</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_cache_dictionary_8cs_source.html#l00074">74</a> of file <a class="el" href="_cache_dictionary_8cs_source.html">CacheDictionary.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a8844f0e43c3b8d734acdc9a00e23ebc4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;.Clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the dictionary </p>

<p>Definition at line <a class="el" href="_cache_dictionary_8cs_source.html#l00129">129</a> of file <a class="el" href="_cache_dictionary_8cs_source.html">CacheDictionary.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a847c8e1ed13201bda941997c115a3c1d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IEnumerator&lt;KeyValuePair&lt;TKey, TValue&gt; &gt; SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;.GetEnumerator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_cache_dictionary_8cs_source.html#l00136">136</a> of file <a class="el" href="_cache_dictionary_8cs_source.html">CacheDictionary.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a89a20a0a54eb1eb595e1ae8b6a03ad14"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;.IsCached </td>
          <td>(</td>
          <td class="paramtype">TKey&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Queries whether given key is already present in the dictionary </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>a key</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether key is present</dd></dl>

<p>Definition at line <a class="el" href="_cache_dictionary_8cs_source.html#l00084">84</a> of file <a class="el" href="_cache_dictionary_8cs_source.html">CacheDictionary.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="af8c314469a423d60e61028ecdca0f654"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ICollection&lt;TKey&gt; SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;.Keys</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all cached keys </p>

<p>Definition at line <a class="el" href="_cache_dictionary_8cs_source.html#l00114">114</a> of file <a class="el" href="_cache_dictionary_8cs_source.html">CacheDictionary.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a719f2428a591b8ac0d6cdd9768f9fd03"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Action&lt;TKey, TValue&gt; SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;.OnItemAdded</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">add</span><span class="mlabel">remove</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Triggered whenever a new key/value-pair was created </p>

<p>Definition at line <a class="el" href="_cache_dictionary_8cs_source.html#l00044">44</a> of file <a class="el" href="_cache_dictionary_8cs_source.html">CacheDictionary.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a8037c701bb87a7cd43a9dcc10ec3322a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">TValue SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;.this[TKey key]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Looks for a given key and either returns its cached value or creates and caches a new value for it. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>key to lookup</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>corresponding value</dd></dl>

<p>Definition at line <a class="el" href="_cache_dictionary_8cs_source.html#l00095">95</a> of file <a class="el" href="_cache_dictionary_8cs_source.html">CacheDictionary.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a27c1a4b34b75b83c17ad5df20aab5a97"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ICollection&lt;TValue&gt; SystemSharp.Collections.CacheDictionary&lt; TKey, TValue &gt;.Values</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all cached values </p>

<p>Definition at line <a class="el" href="_cache_dictionary_8cs_source.html#l00122">122</a> of file <a class="el" href="_cache_dictionary_8cs_source.html">CacheDictionary.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_cache_dictionary_8cs_source.html">CacheDictionary.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_system_sharp.html">SystemSharp</a></li><li class="navelem"><a class="el" href="namespace_system_sharp_1_1_collections.html">Collections</a></li><li class="navelem"><a class="el" href="class_system_sharp_1_1_collections_1_1_cache_dictionary_3_01_t_key_00_01_t_value_01_4.html">CacheDictionary< TKey, TValue ></a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:58 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
